package com.example.plusz.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.relational.core.sql.In;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName Student
 * @Description TODO
 * @Author HP
 * @Date 17:36 2022/7/21
 * @Version 1.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("student")
public class Student implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "sid",type = IdType.AUTO)
    private Long sid;
    private String sname;
    private Integer age;
    private Character sex;
    private Long snum;
    @Version
    private Integer version;
    @TableLogic
    private Integer delted;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    private Long cid;
}
